package com.heima.apis.wemedia;

import com.heima.model.admin.pojos.AdUser;
import com.heima.model.admin.pojos.ApUserRealname;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient("leadnews-wemedia")
public interface IWeMediaClient {
    /**
     * 同步自媒体端用户账号密码
     */
    @PostMapping("/api/v1/wemedia/author")
    public ResponseResult saveAuthor(@RequestBody ApUser apUser);

    /**
     *获取[频道
     * @return
     */
    @GetMapping("/api/v1/channel/list")
    public ResponseResult getChannels();

    @PostMapping("/api/v1/Sensitive/handleSensitive")
    Map<String, Object> handleSensitiveScan(@RequestBody String content);
}
